<script>
    // 定义路由
    let routes = [
        { path: '/', component: recordWriteComponent },
        { path: '/bill', component: billComponent },
        { path: '/future', component: futureComponent },
        { path: '/arap', component: arapComponent },
        { path: '/stock', component: stockComponent },
        { path: '/report', component: reportComponent },
        { path: '/reportold', component: reportoldComponent },
        { path: '/account', component: accountComponent },
        { path: '/category', component: categoryComponent },
        { path: '/project', component: projectComponent },
        { path: '/member', component: memberComponent },
        { path: '/store', component: storeComponent },
        { path: '/write', component: recordWriteComponent },
        { path: '/setting', component: tallySettingComponent },
        { path: '/material', component: materialComponent }
    ];
    const xRouter = new VueRouter({
        routes
    })
</script>
